package com.qumitech.visualnovel.model.dto;

import lombok.Getter;
import lombok.Setter;
import com.qumitech.visualnovel.model.dao.console.RoleDAO;

@Getter
@Setter
public class RoleUpdateDTO {
    private Long id;

    private Long bookId;

    private String type;

    private String firstName;

    private String lastName;

    private String sex;

    public void assignTo(RoleDAO record) {
        record.setId(this.id);
        record.setBookId(this.bookId);
        record.setType(this.type);
        record.setFirstName(this.firstName);
        record.setLastName(this.lastName);
        record.setSex(this.sex);
    }
}